package teamGiga.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import teamGiga.bean.MovieMemberBean;
import teamGiga.dao.MovieDao;
import action.servlet.ActionForWard;

public class MbsAction extends Action{
	private String path;
	private boolean redirect;
	public MbsAction(String path, boolean redirect) {
		super();
		this.path = path;
		this.redirect = redirect;
	}
	public MbsAction() {
		super();
	}
	@Override
	public ActionForWard execute(HttpServletRequest request,
			HttpServletResponse response) {
		// TODO Auto-generated method stub
		try {
			List<MovieMemberBean>mmlist=MovieDao.getMember();
			request.setAttribute("mmlist", mmlist);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return new ActionForWard(path, redirect);
	}
	
}
